@use "@/assets/styles/mixin";

.person-filter{
  width: 213px;
  .person-tabs{
    @include mixin.flex-align;
    padding: 12px;
    &__item{
      position: relative;
      font-size: 14px;
      color: #3D3D3D;
      line-height: 14px;
      cursor: pointer;
      &--active{
        color: #007DFF;
        &:after{
          background-color: #007DFF;
        }
      }
      .item-label{
        margin-bottom: 8px;
      }
      &:after{
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        content: "";
        width: 40px;
        height: 2px;
        margin: 8px auto 0;
      }
      &+.person-tabs__item{
        margin-left: 24px;
      }
    }
  }
  .person-search{
    &__input{
      @include mixin.flex-align;
      padding: 0 10px;
      box-sizing: border-box;
      border-bottom: 1px solid #E1E6ED;
      :deep(.el-input__wrapper){
        box-shadow: none;
        padding: 0;
      }
      :deep(.svg-icon){
        flex-shrink: 0;
        cursor: pointer;
      }
    }
    &__list{
      height: 300px;
      padding: 5px 8px;
      box-sizing: border-box;
      overflow-y: auto;
      border-bottom: 1px solid #D7D8E0;
    }
    :deep(.el-checkbox) {
      width: 100%;
      padding-left: 8px;
      box-sizing: border-box;
      margin-right: 0 !important;
      & + .el-checkbox {
        margin-top: 4px;
      }
      &:hover {
        background-color: #f2f3ff;
      }
    }
    :deep(.is-checked) {
      background-color: #f2f3ff;
    }

    //&__item{
    //  @include mixin.flex-align;
    //  padding: 0 8px;
    //  cursor: pointer;
    //  &--active,
    //  &:hover{
    //    background-color: #F2F3FF;
    //  }
    //  &+.person-search__item{
    //    margin-top: 4px;
    //  }
    //}
  }
  .role-filter{
    &__list{
      height: 300px;
      padding: 5px 8px;
      box-sizing: border-box;
      overflow-y: auto;
      border-bottom: 1px solid #D7D8E0;
    }
    :deep(.el-checkbox) {
      width: 100%;
      padding-left: 8px;
      box-sizing: border-box;
      margin-right: 0 !important;
      & + .el-checkbox {
        margin-top: 4px;
      }
      &:hover {
        background-color: #f2f3ff;
      }
    }
    :deep(.is-checked) {
      background-color: #f2f3ff;
    }
  }
  .dept-filter{
    max-height: 300px;
    overflow-y:auto;
    :deep(.el-checkbox__input.is-indeterminate .el-checkbox__inner){
      border: 1px solid #C5C5D1;
      background-color: #fff;
      &:before{
        @include mixin.position-center;
        width: 6px;
        height: 6px;
        background-color: #0A6EFA;
      }
    }
    :deep(.el-tree-node__expand-icon){
      color: #3E3E47;
    }
  }
  &__buttons{
    @include mixin.flex-align;
    padding:5px 12px;
    :deep(.el-button){
      width: 94px;
      height: 28px;
    }
    .buttons-cancel{
      border: 0;
    }
    .buttons-confirm{
      margin-left: 0;
    }
  }
}


